<?php
$this->pageTitle=Yii::app()->name . ' - Check IMEI iPhone';

$this->breadcrumbs=array(
	'Check IMEI',
);
?>


<style>

.i-info{
margin-left:160px;
width:850px;
}

.i-info td{
width: 20px;
}

.border {
    padding: 1px;
    width: 80%;
	height: 70px;
    margin: auto;
    border:none;
    border-radius: 5px;
    background: #FAFAFA;
}

.border input{
float: left;
height: 33px;
}

.border input[type='text']{
    font-size: 30px;
    padding-left: 4px;    
    width: 280px;
    margin-top:0px;
    margin-right:3px;
}


.mtable tr{
border-top: 1px solid black;
}

.mtable{
width: 85%;
border: 1px solid #DBDBDB;
margin:auto;
margin-top: 15px;
 border-radius: 5px;
}
.mtable .row1{
background: #E3F7F1;
}
</style>



<div style="margin:20px">

<?php if(Yii::app()->user->hasFlash('contact')): ?>



<div class="flash-success">

	<?php echo Yii::app()->user->getFlash('contact'); ?>

</div>



<?php else: ?>



<div class="form">



<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(

	'id'=>'contact-form',

	'enableClientValidation'=>true,

	'clientOptions'=>array(

		'validateOnSubmit'=>true,

	),

)); ?>


<div class="border" style='height: 400px;'>
	<p align="center">
	<font size="3">
	<br>
	Check IMEI iPhone Carrier, Network &amp; Simlock - Full Info
	<span style="color: #999999;"><br>
	Kiểm tra thông tin nguồn gốc Iphone, bị khóa bởi nhà mạng nào & trạng thái khóa
</span><br>
	Thời gian check 1-10 giây<br>
	<b><br>
	</b></font><b><font size="4">
	<font color="#005CCC">1Check</font> = <font color="#009933">0.7Credit </font>=<font color="#009933"> </font> 
	<font color="#CC3300">14.000Vn&#273;</font></font></b><font size="4"><br></font>
	<img src=<?php echo MyConstans::getHostResourcepath()."apple.png" ;?>>
	</p>

		<div style='margin-top:15px; margin-left: 170px;'>
		
				<?php echo $form->textField($model,'imei', array('placeholder'=>"Enter IMEI")); ?>		
				<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit','type'=>'inverse', 'size'=>'large', 'label'=>'Check','htmlOptions'=>array('id'=>'submit'))); ?>
		</div>
	</div>

<div style='width: 100%; height: 380px; margin-top: 20px;'>
	<?php 
	if($model->error == '' && $model->result != ''){
	?>
	<div class='border' style='height: 380px;'>
			<table class='mtable'>
			
				<?php 	
				$row = 0;
				$model->result =  explode("\n", $model->result);
				foreach($model->result as $value){
					if($value != ''){
						$val =  explode(":", $value);
						echo "<tr class='row". $row. "'>" ;
						echo "<td style='font-weight: bold;'><font size='4'>".$val[0]. "</font></td>";
						echo "<td ><font size='4'>".$val[1]. "</font></td>";
						echo "</tr>";
						$row = ($row + 1) %2;
					}
				}
				?>
			</table>
		</div>
	<?php }?>
	
	<center class="row">
			<?php echo $form->error($model,'error'); ?>
	</center>
</div>

  <?php $this->endWidget(); ?><?php endif; ?>